﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace MadProps.TypeDescription
{
    abstract class BasePropertyDescriptor : PropertyDescriptor
    {
        protected BasePropertyDescriptor(string name, Attribute[] attrs)
            : base(name, attrs)
        {
        }

        public override bool CanResetValue(object component)
        {
            return false;
        }

        public override void ResetValue(object component)
        {
            throw new InvalidOperationException();
        }

        public override bool ShouldSerializeValue(object component)
        {
            return true;
        }
    }
}
